
#ifndef __MSG_ERR_H__
#define __MSG_ERR_H__

#include "sys_port.h"
#include "dev_off.h"
#include "dev_off_line.h"
#include "root.h"

typedef struct 
{
    lv_obj_t * img_tip;
    lv_obj_t * lab_tip;

    lv_obj_t * bg_cancel;
    lv_obj_t * lab_cancel;

    lv_obj_t * bg_yes;
    lv_obj_t * lab_yes; 
  
} ui_err_obj_t;

typedef struct 
{
    char dev_name[128];
    char dev_consum_name[128];
    char dev_err_code[128];
    char dev_err_info[128];
}ui_err_data_t;

typedef struct 
{
    ui_err_data_t data;
    ui_err_obj_t  ui;
}ui_msg_err_t;


page_vtable_t* lv_page_msg_err_create(void);

dev_info_t* msg_err_reg(ui_err_data_t* data);
int msg_err_unreg(dev_info_t* devinfo);

#endif
